// pages/statistics/statistics.js

import api from '../../config/setting.js'
Page({
  data: {
    dataList: {}
  },
  onLoad(options) {
    wx.showLoading({
      title: '加载中...',
      mask: true
    })
    wx.request({
      url: api.statistics,
      method: 'GET',
      success: (res)=>{
        this.setData({
          dataList: res.data
        })
      },
      complete:()=>[
        wx.hideLoading()
      ]
    })
  },
})